package com.kede.app.repository;

import com.kede.app.domain.SuppliesStore;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author Pr.li
* @date 2023-06-06
**/
public interface SuppliesStoreRepository extends JpaRepository<SuppliesStore, Integer>, JpaSpecificationExecutor<SuppliesStore> {

    SuppliesStore findDistinctBySupplieIdAndStoreId(Integer supplieId,Integer storeId);

    List<SuppliesStore> findAllByStoreId(Integer storeId);
}